package com.qys.livesMall.finance.model.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 店铺余额表
 *
 * @author
 * @since 2023-06-06
 */
@Getter
@Setter
@TableName("h2_finance_user_account")
public class FinanceUserAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 总余额
     */
    private BigDecimal totalBalance;

    /**
     * 可用余额
     */
    private BigDecimal availableBalance;

    /**
     * 冻结收入
     */
    private BigDecimal freezeIn;

    /**
     * 冻结支出
     */
    private BigDecimal freezeOut;

    /**
     * 删除
     */
    private String deleted;
}
